20. GPIO Commands > 20.6 AT^SGIO   Get IO state of a specified pin or port

20.6
AT^SGIO   Get IO state of a specified pin or port
Syntax
Test Command  
Response(s)
^SGIO:(list of supported <io_id>s)
Write Command  
Response(s)
Reference(s) 
PIN 
ASC0 
ASC1 
USB 
MUX1 
MUX2 
MUX3 
Charge 
Last 

Parameter Description
 
<io_id>(num)
This can be either an already configured <pin_id> or an already opened <port_id>.
 
<value>(num)
State read on this <io_id>.
0
Low for <pin_id>
1
High for <pin_id>
0...1023
For <port_id>


Note
•
If one gets the state of a port whose width is less than 10 bits, the bits of <value> that are more significant than the MSB of the port are set to zero.